#ifndef _COMMUNICATIONN_WORKER_HEAD_H
#define _COMMUNICATIONN_WORKER_HEAD_H
#include "communication-message.h"
#include <map>
#include "communication-device-doorlock.h"
#include "communication-device-electrical.h"
#include "communication-device-sensor.h"
#include "communication-device-sniffing.h"
#include "communication-device-fingerprint.h"
#include "communication-device-list.h"
#include "smart-device-manager.h"

using namespace std;

class CommunicationWorker
{
public:
	CommunicationWorker(const string &uartDevice);
	void doWork(const CommunicationMessage &messages);

private:
	map<string, CommunicationDevice *> deviceMap;
	SmartDeviceManager *               smartDeviceManager;
	FingerPrintManager *               fingerprintManager;
};

#endif
